//
//  SEGHouseDetailsViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/2.
//

#import <Foundation/Foundation.h>
#import "SEGRentalPriceManager.h"
#import "SEGHouseRentalAndSaleRequestManager.h"
#import "SEGNewRentallistitemModel.h"
#import "ReactiveObjC.h"

NS_ASSUME_NONNULL_BEGIN

@interface SEGHouseDetailsViewModel : NSObject
@property (nonatomic, strong) SEGDetailsellDataModel *dataModel;
@property (nonatomic, strong) NSArray <NSString *>*houseImageArray;//房子图片数组
@property (nonatomic, strong) NSArray <SEGQuerydictlistDictlistModel *> *houseFacilityArray;//房屋设施数组

@property (nonatomic, strong) SEGHouseRentalAndSaleRequestManager *requestManager;
@property (nonatomic, strong) NSArray <SEGNewRentallistitemModel *>*houseList;//相似房源数组

@property (nonatomic, strong) NSString *rentalId;
@property (nonatomic, strong) NSString *type;


@property (nonatomic, strong) RACSignal *houseDetailSignal;//房屋详情回调

/**
 初始化

 @param rentalId 房屋id
 @param type 租售类型 1:整租 2:独立房间 3:合租床位 4:出售
 @return viewModel
 */
- (instancetype)initWithRentalId:(NSString *)rentalId type:(NSString *)type;


- (NSDictionary *)getShareParam;
@end

NS_ASSUME_NONNULL_END
